package cn.zero.feign;

import cn.zero.domain.AjaxResult;
import cn.zero.domain.Store;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "store-service", fallbackFactory = StoreFeignClientFallbackFactory.class)
@RequestMapping("/store")
public interface StoreFeignClient {

    @PostMapping("/add")
    AjaxResult add(@RequestBody Store store);

}
